# SPDX-License-Identifier: GPL-2.0
#
# Makefile for the Linux proc filesystem routines.
#

obj-y   += proc.o

ifdef CONFIG_RTOS_FIQ_MEM
obj-y   += fiq_mm.o
endif

CFLAGS_task_mmu.o	+= $(call cc-option,-Wno-override-init,)
proc-y			:= nommu.o task_nommu.o
proc-$(CONFIG_MMU)	:= task_mmu.o

proc-y       += inode.o root.o base.o generic.o array.o \
		fd.o
proc-$(CONFIG_TTY)      += proc_tty.o
proc-y	+= cmdline.o
proc-y	+= consoles.o
proc-y	+= cpuinfo.o
proc-y	+= devices.o
proc-y	+= interrupts.o
proc-y	+= loadavg.o
proc-y	+= meminfo.o
proc-y	+= stat.o
proc-y	+= uptime.o
proc-y	+= util.o
proc-y	+= version.o
proc-y	+= softirqs.o
proc-y	+= namespaces.o
proc-y	+= self.o
proc-y	+= thread_self.o
proc-$(CONFIG_RTOS_IDUMP) += proc_idump.o
proc-$(CONFIG_RTOS_COREDUMP_ON_EXIT)	+= rtos_coredump_on_exit.o
proc-$(CONFIG_PROC_SYSCTL)	+= proc_sysctl.o
proc-$(CONFIG_NET)		+= proc_net.o
proc-$(CONFIG_PROC_KCORE)	+= kcore.o
proc-$(CONFIG_PROC_VMCORE)	+= vmcore.o
proc-$(CONFIG_PRINTK)	+= kmsg.o
proc-$(CONFIG_PROC_PAGE_MONITOR)	+= page.o
proc-$(CONFIG_BOOT_CONFIG)	+= bootconfig.o
obj-$(CONFIG_ETMEM_SCAN)     += etmem_scan.o
obj-$(CONFIG_ETMEM_SWAP)     += etmem_swap.o
proc-${CONFIG_RTOS_SWXN}        += rtos_swxn_pid.o
proc-$(CONFIG_RTOS_RO_VMA_HASH)	+= rtos_ro_vma_hash.o
proc-$(CONFIG_RTOS_MICROSTATE_ACCT)    += hstat.o
proc-${CONFIG_ETMEM}        += etmem_proc.o
proc-${CONFIG_RTOS_COUNT_IDLE_TIME}	+= idle_stat.o
ifdef CONFIG_EULEROS_VIRTUAL
ifdef CONFIG_SCHED_DEBUG
proc-y	+= proc_antos.o
endif # CONFIG_SCHED_DEBUG
endif # CONFIG_EULEROS_VIRTUAL
obj-$(CONFIG_EULEROS_MERGE_TIMER_IRQ)	+= proc_high_precision.o
